﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace myTrac
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

            myTrac.myTracDataSet myTracDataSet = ((myTrac.myTracDataSet)(this.FindResource("myTracDataSet")));
            // Load data into the table tbl_projects. You can modify this code as needed.
            myTrac.myTracDataSetTableAdapters.tbl_projectsTableAdapter myTracDataSettbl_projectsTableAdapter = new myTrac.myTracDataSetTableAdapters.tbl_projectsTableAdapter();
            myTracDataSettbl_projectsTableAdapter.Fill(myTracDataSet.tbl_projects);
            System.Windows.Data.CollectionViewSource tbl_projectsViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("tbl_projectsViewSource")));
            tbl_projectsViewSource.View.MoveCurrentToFirst();
        }
    }
}
